<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Perform case folding on a code point</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="intlchar.enumchartypes.html">« IntlChar::enumCharTypes</a></li>
      <li style="float: right;"><a href="intlchar.fordigit.html">IntlChar::forDigit »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.intlchar.html">IntlChar</a></li>
    <li>Perform case folding on a code point</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="intlchar.foldcase" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlChar::foldCase</h1>
  <p class="verinfo">(PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">IntlChar::foldCase</span> &mdash; <span class="dc-title">Perform case folding on a code point</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlchar.foldcase-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>IntlChar::foldCase</strong></span>(<span class="methodparam"><span class="type"><span class="type">int</span>|<span class="type">string</span></span> <code class="parameter">$codepoint</code></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code><span class="initializer"> = IntlChar::FOLD_CASE_DEFAULT</span></span>): <span class="type"><span class="type">int</span>|<span class="type">string</span>|<span class="type">null</span></span></div>

  <p class="para rdfs-comment">
   The given character is mapped to its case folding equivalent; if the character has no case folding equivalent,
   the character itself is returned.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlchar.foldcase-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>
<code class="parameter">codepoint</code></dt>

    <dd>

     <p class="para">The <span class="type">int</span> codepoint value (e.g. <code class="literal">0x2603</code> for <em class="emphasis">U+2603 SNOWMAN</em>), or the character encoded as a UTF-8 <span class="type">string</span> (e.g. <code class="literal">&quot;\u{2603}&quot;</code>)</p>
    </dd>

   
   
    <dt>
<code class="parameter">options</code></dt>

    <dd>

     <p class="para">
      Either <strong><code>IntlChar::FOLD_CASE_DEFAULT</code></strong> (default)
      or <strong><code>IntlChar::FOLD_CASE_EXCLUDE_SPECIAL_I</code></strong>.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlchar.foldcase-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the <em class="emphasis">Simple_Case_Folding</em> of the code point, if any; otherwise the code point itself on success,
   or <strong><code>null</code></strong> on failure.
  </p>
 </div>


</div></div></div></body></html>